package com.qf.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/origin")
@CrossOrigin("http://localhost:8081")
public class CrossController {
    @RequestMapping("/test1")
    public String test1(){
        System.out.println("========访问到了跨域的controller=========");
        return "ok";
    }
}
